package com.u1s1.dao;

import com.u1s1.entity.Activity;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface ActivityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);
    /**
     * 符合某一条件的查询
     * @param record
     * @return
     */
    ArrayList<Activity> selectSelective(Activity record);
}